#include<sys/types.h>
#include<sys/wait.h>
#include<unistd.h>
#include<stdlib.h>
#include<stdio.h>

int main()
{
	pid_t pc,pr;

	pc = fork();

	if(pc == 0){
		printf("This's Child process with PID = %d \n",getpid());
		sleep(10);
	}else if( pc > 0 ){
		pr = wait(NULL);
//		printf("I catched a child process with pid of %d \n",pr);
		printf("This's parent process with PID = %d \n",getpid());
	}
			
	exit(0);

	return 0;
}
